package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 油厂数据管理对象 yc_data
 *
 * @author ruoyi
 * @date 2022-10-23
 */
public class YcData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据序号 */
    private Long dataId;

    /** 指标序号 */
//    @Excel(name = "指标序号")
    private Long indeId;

    @Excel(name = "指标名称")
    private String indeIdName;

    @Excel(name = "指标级别(厂级/区级/站级)",width = 30,readConverterExp = "0=厂级,1=区级,2=站级")
    private String indeLevel;

    /** 组织序号 */
//    @Excel(name = "组织序号")
    private Long orgId;

    @Excel(name = "组织名称")
    private String orgIdName;

    @Excel(name = "所属部门")
    private String deptName;

    /** 维度值 */
    @Excel(name = "维度值")
    private Integer dataDimension;

    /** 维度 */
    @Excel(name = "维度(月/季度/年)",readConverterExp = "0=月,1=季度,2=年")
    private Integer dimension;

    /** 数据值 */
    @Excel(name = "数据值" )
    private BigDecimal dataValue;

    /** 状态值 */
    @Excel(name = "状态值(待填写/待审核/已驳回/已通过)",width = 35,readConverterExp = "0=待填写,1=待审核,2=已驳回,3=已通过")
    private Integer status;

    /** 数据年份 */
    @Excel(name = "数据年份")
    private Long dataYear;

    @Excel(name = "是否达标(达标/未达标/未知)",width = 30,readConverterExp ="0=达标,1=未达标,2=未知")
    private Integer upToStandard;

    private Long deptId;

    private Long meaId;

    private YcMeasures ycMeasures;
    private YcInde ycInde;

    private YcOrg ycOrg;

    public void setDeptId(Long deptId) {this.deptId = deptId;}

    public Long getDeptId() {return deptId;}

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName(){
        return deptName;
    }

    public void setIndeLevel(String indeLevel) {
        this.indeLevel = indeLevel;
    }

    public String getIndeLevel() {
        return indeLevel;
    }

    public void setMeaId(Long meaId){this.meaId = meaId;}

    public Long getMeaId(){
        return meaId;
    }

    public void setIndeIdName(String indeIdName) {
        this.indeIdName = indeIdName;
    }

    public void setOrgIdName(String orgIdName) {
        this.orgIdName = orgIdName;
    }

    public String getIndeIdName() {
        return indeIdName;
    }

    public String getOrgIdName() {
        return orgIdName;
    }

    public YcInde getYcInde(){
        return ycInde;
    }

    public void setYcInde(YcInde ycInde){
        this.ycInde = ycInde;
    }

    public YcMeasures getYcMeasures(){return ycMeasures;}

    public void setYcMeasures(YcMeasures ycMeasures){this.ycMeasures = ycMeasures;}
    public YcOrg getYcOrg(){
        return ycOrg;
    }

    public void setYcOrg(YcOrg ycOrg) {
        this.ycOrg = ycOrg;
    }

    public void setDataId(Long dataId)
    {
        this.dataId = dataId;
    }

    public Long getDataId()
    {
        return dataId;
    }
    public void setIndeId(Long indeId)
    {
        this.indeId = indeId;
    }

    public Long getIndeId()
    {
        return indeId;
    }
    public void setOrgId(Long orgId)
    {
        this.orgId = orgId;
    }

    public Long getOrgId()
    {
        return orgId;
    }
    public void setDataDimension(Integer dataDimension)
    {
        this.dataDimension = dataDimension;
    }

    public Integer getDataDimension()
    {
        return dataDimension;
    }
    public void setDataValue(BigDecimal dataValue)
    {
        this.dataValue = dataValue;
    }

    public BigDecimal getDataValue()
    {
        return dataValue;
    }
    public void setDimension(Integer dimension)
    {
        this.dimension = dimension;
    }

    public Integer getDimension()
    {
        return dimension;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDataYear(Long dataYear)
    {
        this.dataYear = dataYear;
    }

    public Long getDataYear()
    {
        return dataYear;
    }

    public void setUpToStandard(Integer upToStandard) {
        this.upToStandard = upToStandard;
    }
    public Integer getUpToStandard(){
        return upToStandard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("dataId", getDataId())
                .append("indeId", getIndeId())
                .append("orgId", getOrgId())
                .append("dataDimension", getDataDimension())
                .append("dataValue", getDataValue())
                .append("createTime", getCreateTime())
                .append("dimension", getDimension())
                .append("status", getStatus())
                .append("dataYear", getDataYear())
                .append("ycInde",getYcInde())
                .append("ycOrg",getYcOrg())
                .append("upToStandard",getUpToStandard())
                .append("indeIdName",getIndeIdName())
                .append("orgIdName",getOrgIdName())
                .append("meaId",getMeaId())
                .append("deptId",getDeptId())
                .append("ycMeasures",getYcMeasures())
                .append("indeLevel",getIndeLevel())
                .append("deptName",getDeptName())
                .toString();
    }
}

